package house

// NormalBuilder 普通房屋
type NormalBuilder struct {
	windowType string
	doorType   string
	swimPool   string
	floor      int
}

func newNormalBuilder() *NormalBuilder {
	return &NormalBuilder{}
}

func (b *NormalBuilder) setWindowType() { // 设置窗户类型
	b.windowType = "普通窗户"
}

func (b *NormalBuilder) setDoorType() { //设置门类型
	b.doorType = "普通门"
}

func (b *NormalBuilder) setNumFloor() { //设置层数
	b.floor = 3 //三层
}

func (b *NormalBuilder) setSwimPool() { //设置泳池
	b.swimPool = "无泳池"
}

func (b *NormalBuilder) getHouse() House { //返回房屋类型
	return House{
		doorType:   b.doorType,
		windowType: b.windowType,
		swimPool:   b.swimPool,
		floor:      b.floor,
	}
}
